package org.ichow.scenegame
{
	import org.ichow.scenegame.controller.StartupCommand;
	import org.puremvc.as3.patterns.facade.Facade;
	
	/**
	 * ...
	 * @author M.ichow
	 */
	public class SceneGameFacade extends Facade
	{
		public static const STARTUP:String = "startup";
		public static const EXTERNAL_CALL:String = "externalCall";
		
		public function SceneGameFacade()
		{
		}
		
		public static function getInstance():SceneGameFacade
		{
			if ( instance == null )
				instance = new SceneGameFacade();
			return instance as SceneGameFacade;
		}
		
		override protected function initializeController():void
		{
			super.initializeController();
			registerCommand( STARTUP , StartupCommand );
		}
		
		public function startup( app:Main ):void
		{
			sendNotification( STARTUP , app );
		}
	
	}

}